<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <div>
           {{.name}}
            <input type="text" v-model="msg">
            <button @click="add">添加</button>
        </div>
        </div>
    </div>
</body>
</html>